package Demo7;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-19
 * Time: 22:27
 */
public class Main {
    public static void main(String[] args) {
        Employee yg1=new Employee();
        Employee yg2=new Employee();
        yg1.name="张三";
        yg1.salary=2000;
        yg1.age=30;
        yg2.name="李四";
        yg2.salary=2100;
        yg2.age=25;
        yg1.showInfo();
        yg2.showInfo();
    }
}

class Employee {
    protected String name;
    protected int salary;
    protected int age;
    void showInfo(){
        System.out.println("姓名："+name+" 工资："+salary+" 年龄："+age);
    }
}

/* 请在这里填写答案 */